home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 3 / Info_Mac_1994-01.iso / Development / General / GCC 1.37.1r15 / GCC.MPW / config.h < prev    next >
Text File  |  1990-05-25  |  2KB  |  99 lines

  1. /* Configuration for GNU C-compiler for random 32-bit-int machines
  2.    cross-compiling to Macintosh MPW.
  3.    Copyright (C) 1988 Free Software Foundation, Inc.
  4.    Copyright (C) 1989, 1990 Apple Computer, Inc.
  5.  
  6. This file is part of GNU CC.
  7.  
  8. GNU CC is free software; you can redistribute it and/or modify
  9. it under the terms of the GNU General Public License as published by
  10. the Free Software Foundation; either version 1, or (at your option)
  11. any later version.
  12.  
  13. GNU CC is distributed in the hope that it will be useful,
  14. but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. GNU General Public License for more details.
  17.  
  18. You should have received a copy of the GNU General Public License
  19. along with GNU CC; see the file COPYING.  If not, write to
  20. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  21.  
  22. /* The oddities of MPW C are unique to MPW. */
  23. #ifdef MPW_C
  24. #ifndef MPW_C31
  25. #define MPW_C31
  26. #endif
  27. #ifndef MPW
  28. #define MPW
  29. #endif
  30. #endif
  31.  
  32. /* Do mods for Apple's dialect of C. */
  33.  
  34. #ifndef APPLE_C
  35. #define APPLE_C
  36. #endif
  37.  
  38. /* This is for generic improvements to GCC. */
  39.  
  40. #define APPLE_HAX
  41.  
  42. /* This tweaks the preprocessor to like double slash as a comment. */
  43.  
  44. #define CPLUSPLUS
  45.  
  46. /* #defines that need visibility everywhere.  */
  47. #define FALSE 0
  48. #define TRUE 1
  49.  
  50. /* This describes the machine the compiler is hosted on.  */
  51. #define HOST_BITS_PER_CHAR 8
  52. #define HOST_BITS_PER_SHORT 16
  53. #define HOST_BITS_PER_INT 32
  54. #define HOST_BITS_PER_LONG 32
  55.  
  56. /* Arguments to use with `exit'.  */
  57. #define SUCCESS_EXIT_CODE 0
  58. #define FATAL_EXIT_CODE 33
  59.  
  60. /* target machine dependencies. */
  61.  
  62. #include "tm.h"
  63.  
  64. /* MPW-specific hacks. */
  65.  
  66. #ifdef MPW
  67.  
  68. /* MPW C doesn't know about alloca. */
  69. #ifndef __GNUC__
  70. #define USE_C_ALLOCA
  71. #else
  72. #define alloca __builtin_alloca
  73. #endif
  74.  
  75. /* Pick up the cursor-spinning magic. */
  76. #include <CursorCtl.h>
  77.  
  78. /* Assorted redefinitions, from BSD-like to SysV/ANSI-like. */
  79. #define bzero(a,b) memset(a,0,b)
  80. #define bcopy(a,b,c) memcpy(b,a,c)
  81. #define bcmp(a,b,c) memcmp(a,b,c)
  82. #define index strchr
  83.  
  84. /* Fancy abort is a little more informative. */
  85. #define abort() fancy_abort()
  86.  
  87. /* We want all newly created files to be type TEXT and creator 'MPS ', that is,
  88.    MPW Shell docs that we can look at by double-clicking. */
  89.  
  90. /* Crude, but simpler than trying to modify all the gen* programs. */
  91. #ifdef __STDIO__
  92. FILE *mpw_fopen();
  93. #endif
  94.  
  95. #define fopen(a,b) mpw_fopen(a,b)
  96.  
  97. #endif /* MPW */
  98.  
  99.